package com.example.graduation.entity;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

/**
 * <p>
 *
 * </p>
 *
 * @author xyc
 * @since 2022-02-11
 */
@Data
@Builder
@EqualsAndHashCode(callSuper = false)
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "Goods对象", description = "")
public class Goods implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "商品id")
    @TableId(value = "goods_id", type = IdType.AUTO)
    private Integer goodsId;

    @ApiModelProperty(value = "商家is")
    private Integer userId;

    @ApiModelProperty(value = "归属商店的id")
    private Integer shopId;

    @ApiModelProperty(value = "货存")
    private Integer count;

    @ApiModelProperty(value = "原价格")
    private Double oldprice;

    @ApiModelProperty(value = "最新价格")
    private Double newprice;

    @ApiModelProperty(value = "商品类型")
    private String type;

    @ApiModelProperty(value = "商品状态 0正常 1售空 2下架")
    private Integer status;

    @ApiModelProperty(value = "商品名称")
    private String goodsname;

    @ApiModelProperty(value = "商品创建时间")
    private Long createTime;

    @ApiModelProperty(value = "销售量")
    private Integer sale;

    @ApiModelProperty(value = "月份")
    private Integer month;

    @ApiModelProperty(value = "商品图片")
    private String photo;

    @ApiModelProperty(value = "商品描述，商品描述为图片模式")
    private String des;

    @ApiModelProperty(value = "购买须知")
    private String notice;


}
